package com.yusysqdy.gulimail.product.feign;

import com.yusysqdy.common.utils.R;
import com.yusysqdy.gulimail.product.feign.fallback.SecKillFeignServiceFalback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: gulimail
 * @contact: qindy0116@126.com
 * @author: Mr.DYQin
 * @create: 2021-02-25 14:40
 * @Description:
 **/

@FeignClient(value = "gulimall-seckill",fallback = SecKillFeignServiceFalback.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
